package com.example.asdf;

import java.util.ArrayList;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;

import android.widget.ListView;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		ListView list = (ListView) findViewById(R.id.lista);
		
		ArrayList<PhoneRowItem>listaItem = new ArrayList<PhoneRowItem>();
		listaItem.add(new PhoneRowItem());
		listaItem.add(new PhoneRowItem());
		listaItem.add(new PhoneRowItem());
		listaItem.add(new PhoneRowItem());
		listaItem.add(new PhoneRowItem());
		listaItem.add(new PhoneRowItem());
		listaItem.add(new PhoneRowItem());
		listaItem.add(new PhoneRowItem());
		listaItem.add(new PhoneRowItem());
		
		list.setAdapter(new RowAdapter(getApplicationContext(),listaItem));
		
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
